﻿<?php
class RegActionController extends ActionController {

    public function run() {
        
        if ($this->isPost()) {
            $userMapper = new UserMapper();
            $regUser = $userMapper->regUser($this->getPost());

            $this->view->regUser = $regUser;
        }
        $this->view->setRenderTemplate('registration.phtml');
    }
}
?>